package com.bazhua.bazo.repository.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 商户优惠卷设置表
 */
@TableName("coupon")
public class Coupon {

    @TableField("id")
    private Long id;

    @TableField("coupon_name")
    private String couponName;

    @TableField("coupon_number")
    private String couponNumber;

    @TableField("effective_time_start")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date effectiveTimeStart;

    @TableField("effective_time_end")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date effectiveTimeEnd;

    @TableField("quantity")
    private Integer quantity;

    @TableField("logo_url")
    private String logoUrl;

    @TableField("remark")
    private String remark;

    @TableField("create_time")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @TableField("status")
    private Integer status;

    public String getDetailExplain() {
        return detailExplain;
    }

    public void setDetailExplain(String detailExplain) {
        this.detailExplain = detailExplain;
    }

    @TableField("detail_explain")
    private String detailExplain;

    @TableField("shop_id")
    private Long shopId;

    public Boolean getRepetition() {
        return repetition;
    }

    public void setRepetition(Boolean repetition) {
        this.repetition = repetition;
    }

    @TableField("repetition")
    private Boolean repetition;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public Date getEffectiveTimeStart() {
        return effectiveTimeStart;
    }

    public void setEffectiveTimeStart(Date effectiveTimeStart) {
        this.effectiveTimeStart = effectiveTimeStart;
    }

    public Date getEffectiveTimeEnd() {
        return effectiveTimeEnd;
    }

    public void setEffectiveTimeEnd(Date effectiveTimeEnd) {
        this.effectiveTimeEnd = effectiveTimeEnd;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCouponNumber() {
        return couponNumber;
    }

    public void setCouponNumber(String couponNumber) {
        this.couponNumber = couponNumber;
    }
}
